<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo3.13</title>
    <style>
        .rect{display: flex;width: 400px;height: 200px;background-color: #e45757;}
        .bule{width: 100px;height: 100px;background: blue;}
    </style>
</head>
<body>
    <script src="/js/vue.js"></script>
    <div id="app">
       <div class="rect" v-on:click.self="alertRed">
        <div class="bule" v-on:click="alertBule">我是蓝色区域</div>
       </div>
    </div>
    
    <script>
      let app = new Vue({
        el:"#app",
        data:{ 
          
        },
        methods:{
            alertBule:function(){
                console.log("bule");
            },
            alertRed:function(){
                console.log("red");
            }
        }
    })
    </script>
    
</body>
</html>